home *** CD-ROM | disk | FTP | other *** search
/ Developer CD Series 1997 January: Mac OS SDK / Dev.CD Jan 97 SDK2.toast / Development Kits (Disc 2) / OpenDoc Development Framework / ODF-Interest Archive / April 96 / Re Register for Idle.1 < prev    next >
Encoding:
Internet Message Format  |  1996-12-03  |  1.3 KB  |  [TEXT/ttxt]

  1. Subject:     Re: Register for Idle
  2. Sent:        4/4/96 4:04 PM
  3. Received:    4/4/96 1:26 PM
  4. From:        Lars Travers, ltravers@igc.apc.org
  5. To:          OpenDoc Development Framework Discussion List, ODF-Interest@CILabs.
  6.  
  7. Karl Jepsen wrote:
  8. > >When our part is initialized, we register for idle events with the
  9. > >RegisterIdle call. When we terminate our part, we get the assert debug
  10. > >message fIdleCount == 0.  Trying to eliminate this debug message, we called
  11. > >the UnRegisterIdle method in our part's destructor.  Now we get the debug
  12. > >message fIdleCount >=1 followed by fIdleCount == 0.  What is the
  13. > >significant of these assert messages and what is the proper way to handle
  14. > >unregistering for idle events?
  15. > >
  16. Henri Lamiraux wrote:
  17. > It looks like your part is like ODFClock. ODFClock only calls
  18. > RegisterIdle in the Initialize method. You should not have to call
  19. > UnregisterIdle. It looks like you are registering something else for idle
  20. > or registering something multiple time. Check ODFClock.
  21.  
  22. I have the same problem. I have referred to ODFClock and I think I am 
  23. doing things the same way. I only call RegisterIdle(ev, 15) once in my 
  24. part's Initialize function and never unregister, yet the problem persists. 
  25. Does anyone have any other suggestions or insights?
  26.  
  27. Lars Travers
  28.